#!/Users/timm/opt/gawk/bin/gawk-3.1.70 -f

# glee1, build #6, by 'timm' on Mon Oct 18 22:30:43 EDT 2010.

# -*- mode: Awk; -*-  vim: set filetype=awk :
#
# This file is part of GLEE, copyright Tim Menzies 2010, 
# tim@menzies.us  
# 
# GLEE is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# GLEE is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GLEE.  If not, see <http://www.gnu.org/licenses/>.

#===| aaa.awk |=======

## -*- mode: Awk; -*-  vim: set filetype=awk : 

#Swap Emp with name,age,shoesize


#===| bbb.awk |=======

## -*- mode: Awk; -*-  vim: set filetype=awk : 


#===| numbers.awk |=======

## -*- mode: Awk; -*-  vim: set filetype=awk : 

#Numeric Tricks
#Timm Sept10 Numbers

#Problem
#=======

#Stuff

#See Also
#========

#@include aaa.glee
#@include bbb.glee

#Author
#======

#Tim Menzies


#===| love.awk |=======

## -*- mode: Awk; -*-  vim: set filetype=awk : 


#===| glee1.awk |=======

## -*- mode: Awk; -*-  vim: set filetype=awk :

#Simple Demo of Glee
#Demo Glee Sept10 Timm

#Problem
#=======

#Often, gawk programs pass round a set of variables between multiple
#functions. This is an error prone process.

#Solution
#========

#GLEE supports a simple macro that defines multiple variable names.

#Example
#=======

#For example, after adding these lines to a file...

#  Swap Person with name,age,shoesize
#  Swap Car    with color,engine

#then any _Person:p_ will expand to three variables
#_p\_name, p\_age, p\_shoesize_.  Also, _p\__ expands to the same
#variables.

#This allows for the succinct transfer of data. Also, just by changing
#the above _Swap_ statements, then we can change the variables
#passed to all functions.

 Each Person has one name,age,shoesize and many jobs,kids
 Each Car    has one color,engine
 Each Db     has many orders,suppliers

 function showPerson( Person:p,Car:c1,Car:c2,Emp:e,  i,j) {
	for(i = 1;i <= p_shoesize; i++) 
		print i 
	iLoveYou(p_,c1_,c2_,e_)
 } 

 BEGIN { print 23 }

#See Also
#========

#@include numbers.glee
#@include love.glee

#Author
#======

#Tim Menzies

